package SinglyLinkedList;

public class TestSinglyLinkedList02 {
  public static void main(String[] args) {
    SinglyLinkedList list1 = new SinglyLinkedList();
    list1.addLast(1);
    list1.addLast(2);
    list1.addLast(3);
    list1.addLast(4);
    list1.addLast(5);

    list1.loop2(value -> System.out.println(value));

    System.out.println("--------------------------");

    list1.removeFirst();
    list1.remove(0);
    list1.loop2(value -> System.out.println(value));

    
  }
}
